﻿using System.Runtime.Serialization;
using ZBJF.Warranty.WebApiSite.SysEnum;

namespace ZBJF.Warranty.WebApiSite.Models.ForSeller.Response
{
    /// <summary>
    /// 通用返回实体
    /// </summary>
    [DataContract]
    public class ResultObject<T>
    {
        /// <summary>
        /// 返回结果
        /// </summary>
        [DataMember]
        public bool Result { set; get; }
        /// <summary>
        /// 返回状态码
        /// </summary>
        [DataMember]
        public StatusCodeEnum StatusCode { get; set; }
        /// <summary>
        /// 返回提示信息
        /// </summary>
        [DataMember]
        public string Message { set; get; }

        /// <summary>
        /// 返回数据
        /// </summary>
        [DataMember]
        public T Data { set; get; }
    }
}